package org.xy.bean;

import org.springframework.stereotype.Component;

@Component("student")
public class Student {
	private int id;
	private String name;
	private int age;

	private School school;

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return this.age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public School getSchool() {
		return this.school;
	}

	public void setSchool(School school) {
		this.school = school;
	}

	public Student(int id, String name, int age, School school) {
		super();
		this.id = id;
		this.name = name;
		this.age = age;
		this.school = school;
	}

	public Student() {
		super();
	}

}
